package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 资产明细
 * @Author: jeecg-boot
 * @Date:   2020-06-19
 * @Version: V1.0
 */
@ApiModel(value="zcgl_asset_info对象", description="资产信息")
@Data
@TableName("zcgl_asset_info_sub")
public class AssetInfoSub extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
	/**门牌号*/
	@Excel(name = "门牌号", width = 15)
	@ApiModelProperty(value = "门牌号")
	private String roomName;
	/**面积（m²）*/
	@Excel(name = "面积（m²）", width = 15)
	@ApiModelProperty(value = "面积（m²）")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private BigDecimal roomArea;
	/**主表主键*/
	@ApiModelProperty(value = "主表主键")
	private String assetInfoId;
	/**状态：1、草稿，10、闲置，20、部分出租，30、已出租，35、处置中，40、已处置，50、占用，60、借用，70、老旧危房无效资产，80、新接收资产未满5个月 */
	@Excel(name = "状态", width = 15, dicCode = "zcgl_asset_status")
	@Dict(dicCode = "zcgl_asset_status")
	@ApiModelProperty(value = "状态")
	private Integer roomStatus;

	/**空置原因*/
	@Excel(name = "空置原因", width = 15)
	@ApiModelProperty(value = "空置原因")
	private String emptyReason;

	/**具体问题*/
	@Excel(name = "具体问题", width = 15)
	@ApiModelProperty(value = "具体问题")
	private String concreteIssue;

	/**价值（万元）*/
	@Excel(name = "价值（万元）", width = 15)
	@ApiModelProperty(value = "价值（万元）")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private BigDecimal worth;


	/**
	 * 总合同数量
	 */
	@ApiModelProperty(value = "总合同数量")
	private Integer allContractQuantity;

	/**
	 * 现有合同数量
	 */
	@ApiModelProperty(value = "现有合同数量")
	private Integer hasContractQuantity;

	/**
	 * 最后一次合同到期时间
	 */
//    @Excel(name = "下次生成缴费信息日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "最后一次合同到期时间")
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Date lastRentEndTime;

//	/**坐落位置*/
//	@Excel(name = "坐落位置", width = 15)
//	@ApiModelProperty(value = "坐落位置")
//	private String site;
}
